package com.project.Bean;

import java.time.LocalDate;

/**
 * 房间设施维护实体类
 */
public class RoomFacility {
    /**房间设施维护编号*/
    private int id;
    /**损坏描述*/
    private String info;
    /**报损日期*/
    private LocalDate date = LocalDate.now();
    /**是否已解决*/
    private String statues ="未解决";
    /**所属房间*/
    private Room room;

    public RoomFacility() {
    }

    public RoomFacility(String info, int id) {
        this.info = info;
        this.room = new Room();
        this.room.setId(id);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getStatues() {
        return statues;
    }

    public void setStatues(String statues) {
        this.statues = statues;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    @Override
    public String toString() {
        return "RoomFacility{" +
                "id=" + id +
                ", info='" + info + '\'' +
                ", date=" + date +
                ", statues='" + statues + '\'' +
                ", room=" + room +
                "}\n";
    }
}
